package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 取货记录
 *
 * @author mr.zhou
 * @email zhouweiNice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("pick_up_record")
public class PickUpRecord implements Serializable {

	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;

	private Integer planId;

	private Integer planInfoId;

	private String planDate;

    /**
     * 装车类型 0 - 卸车 1 - 装车
	 */
	private Integer recordType;

	private Integer shopId;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date beginTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date endTime;

	private String recordNo;

	private Integer userId;

	@ExcelColumn(value = "车牌号",col = 2)
	private String carNum;

	@ExcelColumn(value = "车主姓名",col = 3)
	private String realName;

	@ExcelColumn(value = "联系方式",col = 4)
	private String phoneNum;

	private String wuLiaoName;

	private Double wuLiaoWeight;

	@ExcelColumn(value = "物料名称",col = 5)
	@TableField(exist = false)
	private String wuLiaoNameStr;

	@TableField(exist = false)
	@ExcelColumn(value = "重量（吨）",col = 6)
	private String wuLiaoWeightStr;

	private Double wuLiaoTotalWeight;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	/**
	 *  叫号状态  0 -未叫号  1 - 叫号中
	 */
	private Integer callState;

	/**
	 *  状态 0 - 预约成功   1 - 签到成功（叫号成功）  2 - 过号排队中  3 - 取货完成
	 */
	private Integer state;

	private Integer isCancel;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date cancelTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date appointmentTime;


	@ExcelColumn(value = "预约类型",col = 7)
	@TableField(exist = false)
	private String recordTypeStr;

	@ExcelColumn(value = "预约开始时间",col = 8)
	@TableField(exist = false)
	private String beginTimeStr;

	@ExcelColumn(value = "预约结束时间",col = 9)
	@TableField(exist = false)
	private String endTimeStr;

	@ExcelColumn(value = "到访企业",col = 1)
	@TableField(exist = false)
	private String shopName;


	@ExcelColumn(value = "预约时间",col = 10)
	@TableField(exist = false)
	private String createTimeStr;

	@TableField(exist = false)
	private String cancelTimeStr;

}
